package contest;

import java.io.*;
import java.util.*;

public class ListofTop3Hills {
	public static void main(String args[])throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] mount = new int[10];
		for(int i=0;i<10;i++)mount[i]=Integer.parseInt(br.readLine());
		Arrays.sort(mount);
		System.out.println(mount[9]);
		System.out.println(mount[8]);
		System.out.println(mount[7]);
	}
}
